<?php
/*
 * Render a page.
 * Layout areas and page content area are rendered.
 * 
 * Available vars :
 * - dmFrontPageHelper $helper      ( page_helper service )
 * - boolean           $isEditMode  ( whether the user is allowed to edit page )
 */

?>


	
<?php 
if ( strcmp($pageName,"Home") == 0  )
{ 
	echo "<div id =\"LINHNH\" > THIS IS HOME PAGE " ; 
	$zone = dmDb::create('DmZone')->fromArray(array('dm_area_id' => "8"))->saveGet();
    echo $helper->renderZoneWithName('layout.top','zone_signin'); 
    echo "</div>"; 
	include(sfConfig::get('sf_root_dir')."/web/homepage/index.php"); 

}  
else { 
	

	include(sfConfig::get('sf_root_dir')."/web/pagesLayout/pageSuccess.php"); 
	/*echo "<div id=\"dm_page\""; $isEditMode && print 'class="edit"';echo ">"; 

  	echo "<div class=\"dm_layout\">"; 
  
    echo $helper->renderArea('layout.top', '.clearfix'); 
	

    echo "<div class=\"dm_layout_center clearfix\">"; 

       echo $helper->renderArea('layout.left') ;

       echo $helper->renderArea('page.content') ;

       echo $helper->renderArea('layout.right') ;

	 

    echo "</div> "; 

     echo $helper->renderArea('layout.bottom', '.clearfix') ;

 	echo " </div> "; 

	echo "</div>"; 
	*/ 
} 	
?> 